package com.xiaoran.springbt02web.controller;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ViewTestController {
   @RequestMapping("/test1")
    public  String test1(Model model){
        model.addAttribute("xiaoran","我靠");
        model.addAttribute("link","http://www.baidu.com");
        return "success";
    }

}
